/**
 * 
 */
package jm.lib.web.util;

import java.util.Map;

import jm.lib.common.db.SearchClauseHelper;

/**
 * @author JimingLiu
 *
 */
public class DisplayTagUtil {
	
	/**
	 * 
	 * @param params
	 */
	@SuppressWarnings("unchecked")
	public static void convertPageIndex(Map params) {
		for(Object o: params.entrySet()) {
			Map.Entry entry = (Map.Entry)o;
			String key = (String)entry.getKey();
			if(key.startsWith("d-") && key.endsWith("-p")) {
				params.put(SearchClauseHelper.PAGE_INDEX, entry.getValue());
				break;
			}
		}
		
	}
}
